package demo;


import demo.standard.AbstractColleague;
import demo.standard.ConcreteColleagueA;
import demo.standard.ConcreteColleagueB;
import demo.standard.ConcreteMediator;

public class ClientForStandard {

    public static void main(String[] args) {

        ConcreteMediator mediator = new ConcreteMediator();
        AbstractColleague colleagueA = new ConcreteColleagueA(mediator);
        AbstractColleague colleagueB = new ConcreteColleagueB(mediator);

        mediator.addColleague(colleagueA);
        mediator.addColleague(colleagueB);

        colleagueA.exec();
        colleagueB.exec();
    }
}
